home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
vedt.zip
/
DEMO4.VDM
< prev
next >
Wrap
Text File
|
1990-05-15
|
19KB
|
570 lines
RI(9)/VEDIT Family - Basic Editing/
M(H) !Display header
YT/
This demo uses "windows" to let you edit in one window while the other window
gives instructions. In practice you can have the "editing window" fill the
entire screen.
Although VEDIT Jr. does not have windows, all editing features described here
are available on VEDIT Jr. References to "VEDIT" apply to all VEDIT Family
editors.
Feel free to experiment. Don't be concerned about modifying the text. Any
changes you make won't be permanent (as long as you don't use the "File"
sub-menu to save files).
REMEMBER: Press <ESC> to continue to the next step.
Press <ALT-F8> to return to the Main Menu.
Press <ALT-F1> for on-line help.
/
M(K)
YWB(1) 9
Q26YEA !Set editing attribute
YWS(1) Q27YEA !Set attribute in lower window "1"
B#K !Empty edit buffer
EB demo.txt !Load demo file
6L !Start in middle of text
EE(1) !Switch to edit buffer 1
B#K
I/There are 20 cursor movement keys. The most commonly used one are:
<Cursor Up> Move up one line <Cursor Right> Move to next char.
<Cursor Down> Move down one line <Cursor Left> Move to prev. char.
<Home> Move to begin of line <Pg Up> Move up a "Page"
<End> Move to end of line <Pg Dn> Move down a "Page"
<CTRL-Enter> Move to next line
Try these cursor movement keys. --- Then press <ESC> to continue ---/
B -V !Display text
EE(@) !Switch back to main edit buffer
V
EE(1) !Switch to edit buffer 1
B#K
I\Other cursor movement keys help with word processing:
<F5> Move to previous word <F6> Move to next word
<CTRL-Pg Up> Move to prev. paragraph <CTRL-Pg Dn> Move to next paragraph
<CTRL-T> Toggle top/bottom screen <CTRL-L> Toggle begin/end of line
<ALT-A> Move to start of file <ALT-Z> Move to end of file
Note: For <ALT-A> hold down the "Alt" key, like a SHIFT key, while typing "A".
Try these cursor movement keys. --- Then press <ESC> to continue ---\
B -V
EE(@)
V
EE(1)
B#K
I/Sometimes lines are longer than the screen. These lines can be viewed and
edited using the two "horizontal scrolling" keys:
<CTRL-Right Arrow> Scrolls the screen towards the end of the line
<CTRL-Left Arrow> Scrolls the screen back to the beginning of the line
Try these horizontally scrolling keys. Notice how the text shifts sideways.
--- Then press <ESC> to continue ---/
B -V
EE(@)
V
R* 0YWS !Reset horizontal scroll margin
EE(1)
B#K
I/You can enter new text at the cursor by simply typing it. Press <Ins> if
you want the text to be inserted instead of overwriting existing text. (Note
that "INS" appears on the "status line" when you are in "Insert Mode".) Two
keys let you delete single characters.
<Ins> Toggle "Insert" mode Text New text is entered at cursor
<Del> Deletes char at cursor <--- Deletes previous char
Try some simple changes to the text. --- Then press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/To insert a new line of text, first move the cursor to the end of the
previous line (use <Up Arrow> and <End>). Be sure you are in Insert Mode and
then press <Enter>. This inserts a new line (which is initially blank). Now
enter the line of text. You can press <Enter> again to insert another line.
If you press <Enter> with the cursor in the middle of a line, the line is
split into two lines. (Press "<---" to merge the lines back together.)
--- Press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/Most editing functions can be accessed using the "Pull-down" menus. As you
become more familiar with VEDIT you can also access editing functions directly
using Function and CTRL keys. This saves steps by bypassing the menus. Press
<F1> to start the menu system. Use the cursor keys to move around the menus.
Pressing <ESC> removes the menus one level at a time. Pressing <CTRL-C>
removes the menus at once. (This is the "CANCEL" function.)
--- Remove the Menu system and press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/To display the ASCII table from the menu system first press <F1>. Select
the "Misc" sub-menu by typing "M". (Or you can highlight "Misc" using <Cursor
Right> and <Cursor Left> and then press <Enter>.) Select "ASCII Table" by
typing "A". (Or you can highlight "ASCII Table" using <Cursor Up> and <Cursor
Down> and then press <Enter>.)
Press <Enter> after each "page" of the displayed table. Following the last
page, the menu system will remove itself.
--- Press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I\If you have a mouse, move the mouse to the top screen line and click the
left button. This brings up the menu system. You can select an item by first
clicking on its sub-menu name and then on the desired item. Or you can
navigate the menu by holding down the left button. Sliding the mouse along the
top screen line displays each sub-menu. Sliding the mouse up/down highlights
each item or sub-sub-menu. Placing the mouse on an item and releasing the
left button selects the item.
--- Press <ESC> to continue ---\
B -V
EE(@)
V
EE(1)
B#K
I/On-line help is available at any time by pressing <ALT-F1>. It first displays
a keyboard layout listing which key(s) access each editing function. To get
help on a particular function just press the associated key.
For example, for help with searching, first press <ALT-F1> and then <F2>.
-- OR -- Press <Enter> to see the second screen which summarizes the built-in
keystroke macros.
--- Press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/If you press <ALT-F1> and then press <Enter> twice you will see a list of
topics for which on-line help is available.
For example, for an explanation of all the status line messages, first press
<ALT-F1>; then press <Enter> twice; then type "STAT" and <Enter>.
--- Press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/Pressing <ALT-F1> within the menu system gives you an explanation of the
functions available in the currently displayed sub-menu. (Pressing the
right button on a mouse does the same thing.)
Experiment with the menu system by using <Cursor Right> and <Cursor Left> to
display different sub-menus and then pressing <ALT-F1> from each sub-menu.
--- Press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I\If you have a mouse, it can also be used to scroll to other parts of the file,
highlight and copy/move blocks, access help and switch between windows.
The mouse operations are fully described in the on-line help. To access it
press <ALT-F1> (or select "General" in the "Help" sub-menu). At the prompt
for the desired function key click the left button. Or select "Mouse" from
the help topics.
--- Press <ESC> to continue ---\
B -V
EE(@)
V
EE(1)
B#K
I/You can quickly delete lines or words with these keys:
<CTRL-Z> Delete text from cursor to end of line.
<CTRL-X> Delete entire line. The cursor can be anywhere on the line.
<ALT-F5> Delete the previous word.
<ALT-F6> Delete the next word.
Try these deletion keys. --- Then press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/You can "undo" most changes keystroke by keystroke or line by line. To undo
the previous keystroke press <ALT-F7>. To undo the keystroke before that
press <ALT-F7> again, and so on.
To undo all the changes made to a line press <CTRL-U>. Pressing <CTRL-U>
again moves to the previous line you were on. Pressing <CTRL-U> a third time
restores the previous line, and so on.
Try the undo functions. --- Then press <ESC> to continue ---/
B -V
EE(@)
V
EE(1)
B#K
I/The undo keys <ALT-F7> and <CTRL-U> are "keystroke macros" (sometimes called
"hot keys") which directly access functions within the "Undo" sub-menu.
<ALT-F7> is equivalent to {Undo, Edit}.
<CTRL-U> is equivalent to {Undo, Line}.
Note that "{Undo, Edit}" is the notation used for the "Edit" function within
the "Undo" sub-menu. Another topic describes "keystroke macro